﻿<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ExtendedGridControl="clr-namespace:ExtendedGrid.ExtendedGridControl;assembly=ExtendedGrid"
        xmlns:WpfToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
        xmlns:ExtendedColumn="clr-namespace:ExtendedGrid.ExtendedColumn;assembly=ExtendedGrid" Title="MainWindow" Height="350" Width="525">
    <Grid>
        <ExtendedGridControl:ExtendedDataGrid x:Name="grid" ItemsSource="{Binding SourceTable}" AutoGenerateColumns="False" HideColumnChooser="False"
                           >
            <WpfToolkit:DataGrid.Columns>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Game Name" AllowAutoFilter="True"
                                           Binding="{Binding GameName}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Creator" AllowAutoFilter="True"
                                           Binding="{Binding Creator}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Owner"
                                           Binding="{Binding Owner}" AllowAutoFilter="True"/>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Publisher"
                                           Binding="{Binding Publisher}" AllowAutoFilter="False"
                                           CanUserSort="False" Width="*"/>

            </WpfToolkit:DataGrid.Columns>
        </ExtendedGridControl:ExtendedDataGrid>
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="277,117,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
    </Grid>
</Window>
